﻿/*
 * zexception_unittest.cxx
 *
 *  Created on: 2015年3月3日
 *      Author: Fifi Lyu
 */

#include <gtest/gtest.h>
#include "zpsoe/zexception.h"

TEST(CommonTest, ZpsoeException) {
    EXPECT_THROW(ThrowZpsoeException("test message."), zpsoe::ZpsoeException);

    try {
        ThrowZpsoeException("test message.");
    } catch (zpsoe::ZpsoeException &e) {
        EXPECT_STREQ("test message.", e.what());
    }
}

